The operator symbol (without the =)
The left-hand side operand (Lhs is the first argument to Checked)
The right-hand side operand
void
1 Checked!(int, WithNaN) x; 2 x += 4; 3 assert(x.isNaN); 4 x = 0; 5 x += 4; 6 assert(!x.isNaN); 7 x += int.max; 8 assert(x.isNaN);
Defines hooks for binary operators +=, -=, *=, /=, %=, ^^=, &=, |=, ^=, <<=, >>=, and >>>= for cases where a Checked object is the left-hand side operand. If lhs == WithNaN.defaultValue!Lhs, no action is carried. Otherwise, evaluates the operand. If evaluation does not overflow and fits in Lhs without loss of information or change of sign, sets lhs to the result. Otherwise, sets lhs to WithNaN.defaultValue!Lhs.